{% extends  'base.html' %}
        
{% block content %}

	<h2>{{ collection.name }}</h2>
	<h3>{{ collection.description }}</h3>
		
	<div>
		<div class="commands">
			<ul>
				<li><a href="/categories/new">Adicionar Categoria</a></li>
			</ul>
		</div>
		
		<div class="categories">
			{% for c in categories %}
			<div>
				<a href="/category/{{c.id}}">
					{{ c.name }}
				</a>
			</div>												
			{% endfor %}
			{% if not categories %}
				<div>Não há categorias.</div>
			{% endif %}
		</div>
		
	</div>

{% endblock %}